package per.hx.bs.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import per.hx.bs.base.entity.EmailVO;
import per.hx.bs.entity.sys.SysUserDO;

/**
 * @author HuXing
 * @date 2018/5/14  21:43
 */
@Primary
@FeignClient(value = "Huxingbs-Email")
public interface EmailService {


    /**
     * 发送邮件
     *
     * @param emailVO 邮件信息
     * @return 结果
     */
    @PostMapping(value = "/email-service/email/email")
    int sendEmail(@RequestBody EmailVO emailVO);


}
